<%@ page language="java" import="java.util.*,com.njth.beans.*,com.njth.dao.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
		NewsDAO newsdao= (NewsDAO)DaoConfig.getDao(NewsDAO.class);
		List<News> newsList=newsdao.getNewsByPage(1, 10);
		%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>南京同虹科贸，打造专业卫浴系统,TOTO专卖，TOTO洁具。</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<link href="<%=basePath%>com/njth/css/style.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=basePath%>com/njth/css/layout.css" rel="stylesheet"
			type="text/css" />
	</head>

	<body id="page7">
		<div id="main">
			<!-- header -->
			<div id="header">
				<!--Valid flash version 8.0-->
				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
					codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
					width="980" height="430">
					<param name="movie"
						value="<%=basePath%>com/njth/flash/Header_f8.swf?button=0" />
					<param name="quality" value="high" />
					<param name="menu" value="false" />
					<!--[if !IE]> <-->
					<object data="flash/Header_f8.swf?button=0" width="980"
						height="430" type="application/x-shockwave-flash">
						<param name="quality" value="high" />
						<param name="menu" value="false" />
						<param name="pluginurl"
							value="http://www.macromedia.com/go/getflashplayer" />
						FAIL (the browser should render some flash content, not this).
					</object>
					<!--> <![endif]-->
				</object>
			</div>
			<!-- content -->
			<div id="content">
				<div class="bgd">
					<div class="inner">
						<div class="extra">
							<a href="#"><img alt=""
									src="<%=basePath%>com/njth/images/ing.jpg" /> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="#"><img alt=""
									src="<%=basePath%>com/njth/images/banner2.jpg" /> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="#"><img alt=""
									src="<%=basePath%>com/njth/images/banner3.jpg" /> </a>
						</div>
						<div class="article">
							<div class="indent">
								<h2>
									<p align="center">
										删除新闻
									</p>
								</h2>
								<form name="deletenews" method="post" action="">
									<table align="center" width="750">
										<tr>
											<td>
												&nbsp;&nbsp;
												<font color="#3399cc">
												 序号 </font>
											</td>
											<td>
												&nbsp;&nbsp;
												<font color="#3399cc" >
												 新闻标题</font>
											</td>
											<td>
												&nbsp;&nbsp;
												<font color="#3399cc">
												新闻内容</font>
											</td>
											
											<td align="center">
												<font color="#3399cc">
												操作</font>
											</td>
										</tr>
											<tr>
											<%
												if (newsList != null && newsList.size() > 0) {
												for (int i = 0; i < newsList.size(); i++) {
												com.njth.beans.News news = (com.njth.beans.News) newsList
												.get(i);
												%>
											<td>
												&nbsp;&nbsp; <%=news.getId() %>
											</td>
											<td>
												&nbsp;&nbsp; <%=news.getTitle() %>
											</td>
											<td>
												&nbsp;&nbsp; <%=news.getSummary(25) %>
											</td>
											<td align="center">
												<a
												href="<%=basePath%>servlet/DeleteNews?id=<%=news.getId() %>">删除</a>
											</td>
										</tr>
										<%} %>
									    <%} %>
										<tr>
											<td align="right"></td>
											<td align="right"></td>
											<td align="right"></td>
											<td align="right">
												<a href="<%=basePath %>com/njth/jsp/cfmanager.jsp"><br>
													<br>
													<font color="#666666" size="-1">返回</font>
											</td>
										</tr>
									</table>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- footer -->
			<div id="footer">
				<div class="fleft">
					NJTOTO &copy; 2009 | All right
					reserved&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="<%=basePath%>com/njth/jsp/administrator.jsp">登录</a>&nbsp;|
					<a
						href="http://mail.njtoto.com">邮箱</a>
				</div>
				<div class="fright">
					<a href="#"><img alt=""
							src="<%=basePath%>com/njth/images/footer_img1.jpg" /> </a><a
						href="#"><img alt=""
							src="<%=basePath%>com/njth/images/footer_img2.jpg" /> </a><a
						href="#"><img alt=""
							src="<%=basePath%>com/njth/images/footer_img3.jpg" /> </a><a
						href="#"><img alt=""
							src="<%=basePath%>com/njth/images/footer_img4.jpg" /> </a>
				</div>
			</div>
		</div>
	</body>
</html>